import request from '@/utils/request'

export default{
    getHospSetList(current,limit,searchObj){
        return request({
            url: `/admin/hosp/hospitalSet/findPage/${current}/${limit}`,
            method: 'post',
            data: searchObj  //data使用json形式传递
          })
    },
    deleteHospSet(id) {
          return request ({
            url: `/admin/hosp/hospitalSet/${id}`,
            method: 'delete'
          })
        },
    batchHospSet(dict){
        return request ({
            url: `/admin/hosp/hospitalSet/delBathHosp`,
            method: 'delete',
            data: dict
              })
        },
    lockHospSet(id,status) {
        return request ({
            url: `/admin/hosp/hospitalSet/lockHosp/${id}/${status}`,    
            method: 'put'
            })
        },
    savaHospSet(hospset){
        return request({
            url: `/admin/hosp/hospitalSet/saveHosp`,    
            method: 'post',
            data:hospset
        })
    },
    updateHospSet(hospitalSet) {
            return request ({
              url: `/admin/hosp/hospitalSet/updHosp`,
              method: 'post',
              data: hospitalSet
            })
    },
    getHospSet(id) {
            return request ({
              url: `/admin/hosp/hospitalSet/selHosp/${id}`,
              method: 'get'
            })
    }
}
